#include"commonFunction.h"
std::string joinPath(std::string src, 
	std::string append1, 
	std::string append2, 
	std::string append3, 
	std::string append4, 
	std::string append5, 
	std::string append6, 
	std::string append7, 
	std::string append8)
{
	std::string dest = src;
	if (append1.length() > 0) {
		dest += FILE__SPLITTER;
		dest += append1;
	}
	if (append2.length() > 0) {
		dest += FILE__SPLITTER;
		dest += append2;
	}
	if (append3.length() > 0) {
		dest += FILE__SPLITTER;
		dest += append3;
	}
	if (append4.length() > 0) {
		dest += FILE__SPLITTER;
		dest += append4;
	}
	if (append5.length() > 0) {
		dest += FILE__SPLITTER;
		dest += append5;
	}
	if (append6.length() > 0) {
		dest += FILE__SPLITTER;
		dest += append6;
	}
	if (append7.length() > 0) {
		dest += FILE__SPLITTER;
		dest += append7;
	}
	if (append8.length() > 0) {
		dest += FILE__SPLITTER;
		dest += append8;
	}
	return dest;
}

std::string currentPath()
{
	char buffer[8192] = {0};
	if (GetCurrentDir(buffer, sizeof(buffer)) == buffer) {
		std::cout << buffer << '\n';
	}
	return std::string(buffer);
}

int64_t GetUnixTime()
{
	int64_t times = std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now().time_since_epoch()).count();
	return times;
};
